package com.app.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.app.entity.ResidentialEquipment;

public interface UserEquipmentDao {

	/**
	 * 插入用户投诉信息
	 * @param residentialEquipment
	 * @return
	 */
	int insertUserEquipment(ResidentialEquipment residentialEquipment); 

    /**
	 * 跟新投诉状态信息
	 * @param residentialEquipment
	 * @return
	 */
	int updateUserEquipment(ResidentialEquipment residentialEquipment);

    /**
	 * 删除此投诉信息
	 * @param residentialEquipment
	 * @return
	 */
	int deleteUserEquipment(ResidentialEquipment residentialEquipment);

    /**
	 * 投诉分页数据投诉
	 * @param residentialEquipment
	 * @return
	 */
	List<ResidentialEquipment> selectUserEquipmentList(@Param("residentialEquipment") ResidentialEquipment residentialEquipment,@Param("offset") int offset,@Param("pageSize") int pageSize);

    /**
	 * 投诉分页的数据的数量
	 * @param residentialEquipment
	 * @return
	 */
	int selectUserEquipmentListNum(@Param("residentialEquipment") ResidentialEquipment residentialEquipment);
}
